package com.ytl.impl;

import com.ytl.inner.Calculator;
import org.springframework.stereotype.Component;

/**
 * @author Jia Fa
 * @create 2021-12-13 12:16
 */
@Component
public class MyCalculator implements Calculator {
    @Override
    public int add(int i, int j) {
        return i+j;
    }

    @Override
    public int sub(int i, int j) {
        return i-j;
    }

    @Override
    public int mul(int i, int j) {
        return i*j;
    }

    @Override
    public int div(int i, int j) {
        return i/j;
    }
}
